package com.ch.engine.daily.valid;

import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import java.util.List;

/**
 * 账户
 *
 * @author wangchunhui
 * @date 2025/3/25 10:58
 */
@Data
public class AccountDTO {

    @Min(value = 10, message = "ID不能小于 10")
    private Long id;

    @NotBlank(message = "姓名必需填写")
    private String name;

    @NotBlank(message = "电话必需填写")
    private String phone;

    private List<AccountDTO> children;
}

